import '../css/index.css';
import '../css/index.less'
import '@babel/polyfill'
import $ from 'jquery'


document.write("It works.");

function add(x,y){
    return x + y;
}

const sub = (x,y) =>{
    return x-y;
}  

console.log(add(2, 3));

console.log(sub(3, 2));

console.log($);

$("button").on("click",function(){
    $("#div1").fadeIn();
    $("#div2").fadeIn("slow");
    $("#div3").fadeIn(3000);
  });

const promise = new Promise(resolve => {
    setTimeout(()=>{
        console.log("finished");
        resolve();
    },1000);
})